package mud;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/** The species of a unit */
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Race {
    
    /** the name of the race */
    @XmlAttribute
    private String name;
    
    /** the base health of the race */
    @XmlElement
    private long health;
    
    /** the base strength of the race */
    @XmlElement
    private long strength;

    @Override
    public String toString() {
        return name;
    }
    
    /**
     * @return the name of the race
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name of the race
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the base health of the race
     */
    public long getHealth() {
        return health;
    }

    /**
     * @param health the base health of the race
     */
    public void setHealth(long health) {
        this.health = health;
    }

    /**
     * @return the base strength of the race
     */
    public long getStrength() {
        return strength;
    }

    /**
     * @param strength the base strength of the race
     */
    public void setStrength(long strength) {
        this.strength = strength;
    }
}
